Writes an assertion failure to the log (as ANDROID_LOG_FATAL) and to
stderr, before calling
abort(3).
If fmt is non-null, cond is unused. If fmt is null, the string
Assertion failed: %s is used with cond as the string argument.
If both fmt and cond are null, a default string is provided.
Most callers should use
assert(3) from
<assert.h> instead, or the __assert and __assert2 functions provided by
bionic if more control is needed. They support automatically including the
source filename and line number more conveniently than this function.
Writes an assertion failure to the log (as ANDROID_LOG_FATAL) and to stderr, before calling abort(3).
If fmt is non-null, cond is unused. If fmt is null, the string Assertion failed: %s is used with cond as the string argument. If both fmt and cond are null, a default string is provided.
Most callers should use assert(3) from <assert.h> instead, or the __assert and __assert2 functions provided by bionic if more control is needed. They support automatically including the source filename and line number more conveniently than this function.